package dataBase;

import org.hibernate.Session;


public class ShareManager {
	private Session session = null;
	public ShareManager(Session session){
		if (session == null)
			throw new
			RuntimeException("Invalid session object");
		this.session = session;
	}
	public void saveShare(Share share){
		session.save(share);
	}
	public void updateShare(Share share){
		session.update(share);
	}
	public void deleteShare(Share share){
		session.delete(share);
	}
}
